//
//  HJPhotoItem.h
//  KaiChat
//
//  Created by lx on 2023/10/30.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HJChatMessageModel;

@interface HJPhotoItem : NSObject

@property (nonatomic, strong) UIView *sourceView;
@property (nonatomic, strong) NSURL *URL;
@property (nonatomic, strong) NSString *localPath;
@property (nonatomic, strong) NSString *thumbUrl;
@property (nonatomic, strong) NSString *originalUrl;
@property (nonatomic, strong) UIImage *thumbImage;
@property (nonatomic, strong, nullable) UIImage *image;
@property (nonatomic, strong) UIImage *originalImage;
@property (nonatomic, assign) BOOL finished;
@property (nonatomic, assign) BOOL isVideo;
@property (nonatomic, assign) BOOL preloadFinish;

@property (nonatomic, strong) id anyObject;

+ (HJPhotoItem *)itemWithBlock:(void (^)(HJPhotoItem *item))block;
+ (HJPhotoItem *)itemWithMessageModel:(HJChatMessageModel *)model;



- (void)loadData;

@end

NS_ASSUME_NONNULL_END
